package cn.iocoder.yudao.framework.common.enums;

import cn.hutool.core.util.ObjUtil;
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 通用状态枚举
 *
 * @author 芋道源码
 */
@Getter
@AllArgsConstructor
public enum OrderCheckTypeEnum implements IntArrayValuable {

    RADIO(0, "单选"),
    CHOICES(1, "多选"),
    TEXT(2, "文本"),
    DESCRIPTION(3, "说明"),
    SIGN(4, "签字"),
    PHOTO(5, "照片"),
    VIDEO(6, "视频");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(OrderCheckTypeEnum::getStatus).toArray();

    /**
     * 状态值
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }


}
